package com.ontheroad.mysql.group.service;

import cn.modoumama.service.base.impl.BaseServiceImpl;
import com.ontheroad.api.request.GroupRequest;
import com.ontheroad.api.response.Response;
import com.ontheroad.group.model.GroupModel;
import com.ontheroad.group.model.GroupUserModel;
import com.ontheroad.group.service.GroupService;
import com.ontheroad.mysql.group.mapper.GroupMapper;
import com.ontheroad.mysql.group.mapper.GroupUserMapper;
import com.ontheroad.mysql.user.mapper.UserMapper;
import com.ontheroad.user.model.UserModel;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by kedong on 2017/7/4 0004.
 * TODO 分组需求待明确具体细节
 */
@Service
@Transactional
public class GroupServiceImpl extends BaseServiceImpl<GroupModel, Integer> implements GroupService {

    @Autowired
    private GroupMapper mapper;

    @Autowired
    public void setMapper(GroupMapper mapper) {
        setGenericMapper(mapper);
    }

    @Override
    public void delete(String objectId, Integer userId) {
        mapper.delete(objectId, userId);
    }

}
